package com.bowen.mybatis.mapper;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.junit.jupiter.api.Test;

import com.bowen.mybatis.util.MyBatis;


public class AppService {
	
	@Test
	public void find() {
		SqlSession session = MyBatis.getSession();
		AppMapper appMapper = session.getMapper(AppMapper.class);
		List<User> user = appMapper.find();
		for (User user2 : user) {
			System.out.println(user2);
		}
		
		
	}

}
